#include "stdafx.h"
#include <atlwin.h>

class MyWin : public CWindowImpl<MyWin>
{
public:
	DECLARE_WND_CLASS( _T("{059AD0B1-9423-4295-AF4A-C3F1561A5D51}") );


	//BEGIN_MSG_MAP_EX(MyWin)
	//	MESSAGE_HANDLER(WM_CLOSE, OnClose)
	//END_MSG_MAP()

public: 
	MyWin(){}
	~MyWin(){}

	LRESULT OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
	{
		DestroyWindow();
		return 0;
	}

protected:
};